# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-url-normalize
_pkgname=url-normalize
pkgver=2.2.1
pkgrel=1
pkgdesc='URL normalization for Python.'
arch=('any')
url='https://pypi.org/project/url-normalize/#files'
license=('custom:unknown')
depends=('python' 'python-six')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('34d31a1edbb9a4d508eb11b6c0315a63cbbd237fe8a98455dc9a82e30ab78e6a2086331f4073af2ac521936907b9a5fb01ce9d8e0b2417f0d85d06c9fa685a9c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

